<div class="main_content">
    <div class="main_content_head">
        <div class="main_content_head_tab_left"></div>
        <div class="main_content_head_tab_content"><?= $main_content_title ?></div>
        <div class="main_content_head_tab_right_content"></div>
        <div class="main_content_head_tab_right_middle"></div>
        <div class="main_content_head_tab_right_end"></div>
    </div>

    <ul class="main_content_content">

        <?php
        if ($products != null) {
            foreach ($products as $row):
                ?>
                <li class="item">
                    <a href="<?= HOME_PAGE ?>product/product_detail/<?= $row->product_id ?>">
                        <img src="<?= FRONT_UPLOADED . $row->image_url ?>" alt="">
                        <h3><?= $row->product_name ?></h3>
                        <p><span class="TP">TP: <?= number_format($row->product_company_price) ?> VNĐ</span></p>
                        <p><span class="CT">CT: <?= number_format($row->product_tan_phat_price) ?> VNĐ</span></p>
                    </a>
                </li>
            <?php endforeach; ?>
        </ul>
        <?php
    }
    else {
        ?>
        <center><h2 style="padding: 10px; margin-top: 30px;">Chưa có sản phẩm nào</h2></center>
        <?php
    }
    ?>

</div>